# while num<=100:
#     if num %2 == 0:
#         sum+=num
#         print(num)
#     num+=1
# print(f"偶数结果{sum}")
# while num <= 100:
#     sum += num
#     print(num)
#     num += 2
# print(f"偶数的和{sum}")
# num = 0
# sum = 0
# while num <= 10:  # 1  3 5 7 9
#     if num%2 !=0:
#         sum+=num
#         print(num)
#     num+=1
# print(f"奇数的和为{sum}:")
